package com.sea.physical.mapper;


import com.sea.physical.entity.Freight;

import java.util.List;

public interface FreightMapper {

    /**
     * 条件查询
     * @param freight
     * @return
     */
    List<Freight> findByCnd(Freight freight);

    /**
     * 新增
     * @param freight
     * @return
     */
    int insert(Freight freight);

    /**
     * 删除指定
     * @param id
     * @return
     */
    int delete(Integer id);

    /**
     * 查询指定
     * @param id
     * @return
     */
    Freight findById(Integer id);

    /**
     * 更新
     * @param freight
     * @return
     */
    int update(Freight freight);

    /**
     * 查询运费
     * @param freight
     * @return
     */
    Freight findFreight(Freight freight);
}
